package com.yiren.dbaa.currency.model;

import com.vividsolutions.jts.geom.LineString;
import com.yiren.backstage.currency.entity.TrajectoryEntity;
import com.yiren.backstage.currency.entity.TrajectoryPointEntity;
import com.yiren.dbaa.view.interf.OnMapViewDragListener;

/**
 * Created by WANGRONGXIANG
 * on 2022/4/18
 * Describe 轨迹绘制常用全局变量模型
 */
public class TrajectVariableModel {

    private int width;
    private int height;
    private int originX;
    private int originY;
    private int accuracy;
    private boolean isGsdw = true;      //是否跟随定位
    private boolean isUpLocation;       //附近没轨迹时 当前坐标是否更新至距离轨迹最近的坐标
    private String currentText = "0";   //当前修改点位的索引
    private boolean isCollectInterface; //是否采集界面
    private boolean isCollect;          //是否正在采集
    private boolean isShowBsPoint;      //是否显示地图编号
    private LineString carLineString;   //车身线
    private LineString wheelLineString; //车轮线
    private TrajectoryEntity currentUpdateTrajectory;   //当前修改的轨迹
    private TrajectoryPointEntity currentUpdatePoint;   //当前修改轨迹点位
    private OnMapViewDragListener onMapViewDragListener;//mapview拖拽事件

    public void setDimens(int width, int height) {
        this.width = width;
        this.height = height;
    }

    public void setOriginXY(int originX, int originY) {
        this.originX = originX;
        this.originY = originY;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getOriginX() {
        return originX;
    }

    public void setOriginX(int originX) {
        this.originX = originX;
    }

    public int getOriginY() {
        return originY;
    }

    public void setOriginY(int originY) {
        this.originY = originY;
    }

    public int getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(int accuracy) {
        this.accuracy = accuracy;
    }

    public boolean isGsdw() {
        return isGsdw;
    }

    public void setGsdw(boolean gsdw) {
        isGsdw = gsdw;
    }

    public boolean isUpLocation() {
        return isUpLocation;
    }

    public void setUpLocation(boolean upLocation) {
        isUpLocation = upLocation;
    }

    public String getCurrentText() {
        return currentText;
    }

    public void setCurrentText(String currentText) {
        this.currentText = currentText;
    }

    public boolean isCollectInterface() {
        return isCollectInterface;
    }

    public void setCollectInterface(boolean collectInterface) {
        isCollectInterface = collectInterface;
    }

    public boolean isCollect() {
        return isCollect;
    }

    public void setCollect(boolean collect) {
        isCollect = collect;
    }

    public boolean isShowBsPoint() {
        return isShowBsPoint;
    }

    public void setShowBsPoint(boolean showBsPoint) {
        isShowBsPoint = showBsPoint;
    }

    public LineString getCarLineString() {
        return carLineString;
    }

    public void setCarLineString(LineString carLineString) {
        this.carLineString = carLineString;
    }

    public LineString getWheelLineString() {
        return wheelLineString;
    }

    public void setWheelLineString(LineString wheelLineString) {
        this.wheelLineString = wheelLineString;
    }

    public TrajectoryEntity getCurrentUpdateTrajectory() {
        return currentUpdateTrajectory;
    }

    public void setCurrentUpdateTrajectory(TrajectoryEntity currentUpdateTrajectory) {
        this.currentUpdateTrajectory = currentUpdateTrajectory;
    }

    public TrajectoryPointEntity getCurrentUpdatePoint() {
        return currentUpdatePoint;
    }

    public void setCurrentUpdatePoint(TrajectoryPointEntity currentUpdatePoint) {
        this.currentUpdatePoint = currentUpdatePoint;
    }

    public OnMapViewDragListener getOnMapViewDragListener() {
        return onMapViewDragListener;
    }

    public void setOnMapViewDragListener(OnMapViewDragListener onMapViewDragListener) {
        this.onMapViewDragListener = onMapViewDragListener;
    }
}
